"""
RedFire 共享模块
==============

提供系统级别的共享组件和基础设施
"""

__version__ = "1.0.0"

# 核心模块 - 安全导入
def _safe_import(module_name, fallback=None):
    try:
        return __import__(f"shared.{module_name}", fromlist=[module_name])
    except ImportError as e:
        print(f"Warning: Failed to import shared.{module_name}: {e}")
        return fallback

# 导出主要模块
core = _safe_import("core")
data = _safe_import("data")
security = _safe_import("security") 
web = _safe_import("web")
config = _safe_import("config")

# 平台模块（使用新的目录结构）
platform = _safe_import("platform")

__all__ = [
    "core", "data", "security", "web", "config", 
    "platform"
]